public abstract class SimilarityAgent extends SouthamptonAgent
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> |
bestOpponentBidUtilityHistory
The best bids (in terms of our utility) that we have seen from the
opponent.
|
protected double |
utility0
The utility (to us) of the first bid made by the opponent.
|
protected double |
utility1
The expected utility (to us) of the final bid made by the opponent.
|
acceptMultiplier, bidSpace, MAXIMUM_ASPIRATION, myLastAction, myLastBid, myPreviousBids, opponentBids, opponentIsHardHead, opponentModel, opponentPreviousBidfNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace| Constructor and Description |
|---|
SimilarityAgent() |
| Modifier and Type | Method and Description |
|---|---|
protected Bid |
getRandomBidInRange(double lowerBound,
double upperBound)
Get a random bid in a given utility range.
|
protected abstract double |
getTargetUtility(double myUtility,
double opponentUtility) |
static java.lang.String |
getVersion() |
void |
init()
This method is called by the protocol every time before starting a new
session after the internalInit method is called.
|
protected Bid |
proposeInitialBid()
Propose the initial bid.
|
protected Bid |
proposeNextBid(Bid opponentBid)
Propose the next bid.
|
chooseAction, finalize, getAgentNo, log, ReceiveMessageendSession, getAgentID, getName, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleepprotected java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> bestOpponentBidUtilityHistory
protected double utility0
protected final double utility1
public void init()
Agentinit in class SouthamptonAgentpublic static java.lang.String getVersion()
protected Bid proposeInitialBid()
SouthamptonAgentproposeInitialBid in class SouthamptonAgentprotected Bid proposeNextBid(Bid opponentBid)
SouthamptonAgentproposeNextBid in class SouthamptonAgentopponentBid - The bid that has just been made by the opponent.protected abstract double getTargetUtility(double myUtility,
double opponentUtility)
protected Bid getRandomBidInRange(double lowerBound, double upperBound) throws java.lang.Exception
SouthamptonAgentgetRandomBidInRange in class SouthamptonAgentlowerBound - The lower bound on utility.upperBound - The upper bound on utility.java.lang.Exception